<%@ page import="id.co.gomobile.assessment.User" %>
<%@ page import="id.co.gomobile.assessment.Profile"%>
<%@ page import="id.co.gomobile.assessment.Role"%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <title>Sign In</title>
    </head>
    <body>
    <g:render template="/shared/navigation" />
    
    <div id="body">
    
    <h1>Sign In</h1>
    
    <g:if test="${flash.message}">
        <div class="message">${flash.message}</div>
    </g:if>

    <form action='${postUrl}' method='POST' id='loginForm' class='cssform'>
    
    <div class="form">

    <fieldset>
        <h3>Enter your login credential</h3>
        
        <br/>
        
        <label for="j_username" class="required">Username :</label>
        <div class="value">
            <input type='text' class='text_' name='j_username' id='j_username' value='${request.remoteUser}' />
        </div>
                
        <br/>

        <label for="j_password" class="required">Password :</label>
        <div class="value">
            <input type='password' class='text_' name='j_password' id='j_password' />
        </div>

        <br/>

        <label for='remember_me'>Remember me</label>
        <div class="value">
            <input type='checkbox' class='chk' name='_spring_security_remember_me' id='remember_me' <g:if test='${hasCookie}'>checked='checked'</g:if> />
        </div>
        
        <br/>
        <br/>

        <p>Do not have account yet?  <g:link controller="registration" action="signup">Sign up here</g:link>.</p>

        <br/>
        <br/>

        <div class="buttons">
            <span class="button"><g:submitButton name="login" class="login" value="Login" /></span>
        </div>
    </fieldset>

    </div>

    </form>

    </div>
    </body>
</html>